/*	kd:
	The tip has to be updated one tic later, because buying and equipping are
	all handled over network events. Those take one tic. If we didn't do this,
	you would not get the proper updated tip the moment you buy something.
	
	Too bad. */

struct Gc_Shop_TipUpdate play {
	bool m_update;
	uint m_item;
	
	void Tick (Gc_Shop_Tip tip, Actor user_mo, Gc_Shop_Inv shop_inst) {
		if(m_update) {
			if(tip) {
				tip.Fill(user_mo, shop_inst, m_item);
			}
			
			m_update = false;
		}
	}
	
	void Update (uint item) {
		m_update = true;
		m_item   = item;
	}
}